#pragma once

#include"IClass.h"

#include<map>
#include<string>
using namespace std;

class FlyWeightFactory {
private:
	map<string, IClassFont*> IClassFontFlyWeights;

public:
	IClassFont* GetIClassFountFlyWeight(string key) {
		map<string, IClassFont*>::iterator iteratorFlyweight = IClassFontFlyWeights.find(key);
		if (iteratorFlyweight != IClassFontFlyWeights.end()) {
			return IClassFontFlyWeights[key];
		}
		else {
			//	create new flyweight
			//	or do nothing
		}
	}
};
